package com.cqupt.scanning.system.file.service;

import com.cqupt.scanning.system.utils.result.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Data: 2021/7/6 20:36
 * @Author: 宋宝梁
 */
public interface FileService {
    void handleFootFile(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void downloadGaitPdf(Integer id, HttpServletResponse response);

    void handleThreeFile(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void downloadThreeFile(Integer id, HttpServletResponse response);

    void downloadFootZipFile(Integer id, HttpServletResponse response);

    void downloadThreeZipFile(Integer id, HttpServletResponse response);

    void downloadLeftCsvFile(Integer id, HttpServletResponse response);

    void downloadRightCsvFile(Integer id, HttpServletResponse response);

    void downloadBalancePdf(Integer id, HttpServletResponse response);

    R downloadBatchFootZipFile(String startTime, String endTime, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchBalanceZipFile(String startTime, String endTime, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchThreeZipFile(String startTime, String endTime, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchOriginalFootZipFile(String beginTime, String endTime, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchOriginalThreeZipFile(String beginTime, String endTime, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
